const { defineConfig } = require('@vue/cli-service');
const path = require("path");

function resolve(dir) {
  return path.join(__dirname, dir);
}

module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  chainWebpack: config => {
    // 配置别名
    config.resolve.alias
      .set("assets", resolve("src/assets"))
      .set("~", resolve("src/components"))
  }
})